package com.css.dzj.dzjdzqs.modules.apaction.aprecordandgain.entity;

import javax.persistence.*;
import java.util.Date;
import java.util.Objects;
//JG_JGDX_CDCS_PLACE  场地场所（如建筑工地、水库）信息
@Entity
@Table(name = "JG_JGDX_CDCS_PLACE", schema = "DZJJH", catalog = "")
public class JgJgdxCdcsPlaceEntity {
    private String placeName;
    private String area;
    private String areaNumber;
    private String responsibleDept;
    private String enterpriseCreditCode;
    private String chargePerson;
    private String certificateType;
    private String certificateNumber;
    private String contactTel;
    private String placePurpose;
    private String placeScale;
    private Date startDate;
    private String deviceLifetime;
    private String placeId;
    //1.备案信息表  2.区域地震安全性评估成果/地震小区划工作成果-备案信息表
    private String dataFrom;

    @Basic
    @Column(name = "Place_Name")
    public String getPlaceName() {
        return placeName;
    }

    public void setPlaceName(String placeName) {
        this.placeName = placeName;
    }

    @Basic
    @Column(name = "Area")
    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    @Basic
    @Column(name = "Area_Number")
    public String getAreaNumber() {
        return areaNumber;
    }

    public void setAreaNumber(String areaNumber) {
        this.areaNumber = areaNumber;
    }

    @Basic
    @Column(name = "Responsible_Dept")
    public String getResponsibleDept() {
        return responsibleDept;
    }

    public void setResponsibleDept(String responsibleDept) {
        this.responsibleDept = responsibleDept;
    }

    @Basic
    @Column(name = "Enterprise_Credit_Code")
    public String getEnterpriseCreditCode() {
        return enterpriseCreditCode;
    }

    public void setEnterpriseCreditCode(String enterpriseCreditCode) {
        this.enterpriseCreditCode = enterpriseCreditCode;
    }

    @Basic
    @Column(name = "Charge_Person")
    public String getChargePerson() {
        return chargePerson;
    }

    public void setChargePerson(String chargePerson) {
        this.chargePerson = chargePerson;
    }

    @Basic
    @Column(name = "Certificate_Type")
    public String getCertificateType() {
        return certificateType;
    }

    public void setCertificateType(String certificateType) {
        this.certificateType = certificateType;
    }

    @Basic
    @Column(name = "Certificate_Number")
    public String getCertificateNumber() {
        return certificateNumber;
    }

    public void setCertificateNumber(String certificateNumber) {
        this.certificateNumber = certificateNumber;
    }

    @Basic
    @Column(name = "Contact_Tel")
    public String getContactTel() {
        return contactTel;
    }

    public void setContactTel(String contactTel) {
        this.contactTel = contactTel;
    }

    @Basic
    @Column(name = "Place_Purpose")
    public String getPlacePurpose() {
        return placePurpose;
    }

    public void setPlacePurpose(String placePurpose) {
        this.placePurpose = placePurpose;
    }

    @Basic
    @Column(name = "Place_Scale")
    public String getPlaceScale() {
        return placeScale;
    }

    public void setPlaceScale(String placeScale) {
        this.placeScale = placeScale;
    }

    @Basic
    @Column(name = "Start_Date")
    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    @Basic
    @Column(name = "Device_Lifetime")
    public String getDeviceLifetime() {
        return deviceLifetime;
    }

    public void setDeviceLifetime(String deviceLifetime) {
        this.deviceLifetime = deviceLifetime;
    }

    @Id
    @Column(name = "Place_Id")
    public String getPlaceId() {
        return placeId;
    }

    public void setPlaceId(String placeId) {
        this.placeId = placeId;
    }

    @Basic
    @Column(name = "Data_From")
    public String getDataFrom() {
        return dataFrom;
    }

    public void setDataFrom(String dataFrom) {
        this.dataFrom = dataFrom;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        JgJgdxCdcsPlaceEntity that = (JgJgdxCdcsPlaceEntity) o;
        return Objects.equals(placeName, that.placeName) &&
                Objects.equals(area, that.area) &&
                Objects.equals(areaNumber, that.areaNumber) &&
                Objects.equals(responsibleDept, that.responsibleDept) &&
                Objects.equals(enterpriseCreditCode, that.enterpriseCreditCode) &&
                Objects.equals(chargePerson, that.chargePerson) &&
                Objects.equals(certificateType, that.certificateType) &&
                Objects.equals(certificateNumber, that.certificateNumber) &&
                Objects.equals(contactTel, that.contactTel) &&
                Objects.equals(placePurpose, that.placePurpose) &&
                Objects.equals(placeScale, that.placeScale) &&
                Objects.equals(startDate, that.startDate) &&
                Objects.equals(deviceLifetime, that.deviceLifetime) &&
                Objects.equals(placeId, that.placeId) &&
                Objects.equals(dataFrom, that.dataFrom);
    }

    @Override
    public int hashCode() {
        return Objects.hash(placeName, area, areaNumber, responsibleDept, enterpriseCreditCode, chargePerson, certificateType, certificateNumber, contactTel, placePurpose, placeScale, startDate, deviceLifetime, placeId, dataFrom);
    }
}
